
# person = [
#     [1, '张飞', '屠夫', None, 200000, True],
#     [2, '曹操', '校尉', '蔡夫人', 20000000, True],
#     [3, '关羽', '保安', None, 1000, False],
#     [4, '诸葛亮', '地主', '黄月英', 300000000, True]
# ]
# # for i in range(1, 4, 2):
# #     print(person[i])
# for i in range(len(person)):
#     for j in range(len(person[i])):
#         print(person[i][j])

# for i in range(1,5):
#     for j in range(1,5):
#         for k in range(1, 5):
#             if (i!=j) and (j!=k) and (k!=i):
#                 print(i,j,k)

# i = int(input('净利润:'))
# arr = [1000000, 600000, 400000, 200000, 100000, 0]
# rat = [0.01, 0.015, 0.03, 0.05, 0.075, 0.1]
# r = 0
# for a in range(0, 6):
#     if i > arr[a]:
#         r = r + (i - arr[a]) * rat[a]
#         # print((i - arr[a]) * rat[a])
#         i = arr[a]
# print(r)

# 1、求1+2+3+4+....+100的值
# total = 0
# for i in range(1, 101):
#     total = total + i
# print(total)

# 2、求100以内，能被3整除，但不能被5整除的数
# vab=[]
# for i in range(1,101):
#     if i%3==0 and i%5!=0:
#         vab.append(i)
# print(vab)

# 3、有一个水缸，总量50L，已经有15L，挑水一次只能挑4L，几次挑满
# count = 0
# for i in range(0, 50 - 15, 4):
#     if i <= 50 - 15:
#         count = count + 1
# print(f"需要：{count}次挑满")

# carry_water_count()

# x = int(input('输入第一个正整数：'))
# y = int(input('输入第二个正整数：'))
# z = int(input('输入第三个正整数：'))
# vab = [x, y, z]
# vab.sort()
# print(vab)


year=int(input('请输入年份：'))
month=int(input('请输入月份：'))
day=int(input('请输入日期：'))

days = 0
month_days = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31]
if (year % 4 == 0 and year % 100 != 0) or year % 400 == 0:
    month_days[1]=29

for i in range(month - 1):
    days = days + month_days[i]

total=days+day
print(f'总天数为：{total}')


